//
//  AYSPlayVideoModel.m
//  AiYingShiProject
//
//  Created by lanou on 15/10/28.
//  Copyright (c) 2015年 李晓理. All rights reserved.
//

#import "AYSPlayVideoModel.h"

@implementation AYSPlayVideoModel

- (instancetype)init
{
    self = [super init];
    if (self)
    {
        _urlArray = [NSMutableArray array];
    }
    return self;
}

- (void)setValue:(id)value forKey:(NSString *)key
{
    if ([key isEqualToString:@"urls"])
    {
        for (NSDictionary *dict in value)
        {
            _urlModel = [[AYSPlayUrlModel alloc] init];
            [self.urlModel setValuesForKeysWithDictionary:dict];
            [self.urlArray addObject:self.urlModel];
        }
    }
    else
    {
        [super setValue:value forKey:key];
    }
}
@end
